package org.world.api.query.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.world.domain.aggregate.animal.constant.GenderEnum;

import java.time.LocalDateTime;

@Data
public class AnimalGodPageItemVo {
    /**
     * 标识
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 性别
     */
    private GenderEnum gender;

    /**
     * 是否怀孕
     */
    private Boolean isPregnant;

    /**
     * 母亲标识
     */
    private Long motherId;

    /**
     * 出生时间
     */
    private LocalDateTime gaveBirthTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private LocalDateTime updatedTime;
}
